# -*- coding: utf-8 -*-            
# @Author : liguang
# @Time : 2023/11/17 14:28


def func1():
    print("当前func1函数会出现异常")
    i = 1 / 0


def func2():
    func1()

if __name__ == '__main__':
    try:
        func2()
    except Exception as e:
        print(f"当前函数出现了异常，异常信息是：{e}")
    else:
        print("函数没有异常的时候会执行到这里来")

    print("hello,this is main")